using System;
using System.Linq;
using MvcMall.Core.Contacts.Repositories;
using NHibernate.Linq;
using SharpArch.Data.NHibernate;

namespace MvcMall.Data.Repositories
{
    public class DataRepository<T> : NHibernateRepository<T>, IDataRepository<T>
    {
        public IQueryable<T> QueryAll()
        {
            return Session.Query<T>();
        }
    }
}